target=[]
target=input()
target=target.split(" ")
max1=max(target)
target.remove(max1)
max2=max(target)
max_all=int(max1)+int(max2)
print(max_all)
